package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author wgc
 * @since 2023-09-16
 */
@Getter
@Setter
@TableName("orders")
@ApiModel(value = "OrdersPlus对象", description = "")
public class Orders {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("编号")
    private String no;

    @ApiModelProperty("总金额")
    private BigDecimal totalPrice;

    @ApiModelProperty("状态")
    private String state;

    @ApiModelProperty("下单时间")
    private String time;

    @ApiModelProperty("付款时间")
    private String payTime;

    @ApiModelProperty("退款时间")
    private String returnTime;

    @ApiModelProperty("支付宝交易号")
    private String alipayNo;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String nickname;

    @TableField(exist = false)
    private List<Cart> carts;

}
